# -*- coding: utf-8 -*-
import os,sys,re
from ts import *
from CMDSets import *
from CMDSetsDevice import DeviceCmdSetsController
from LogController import LogController
from USBDevice import USBDevice
from UARTDevice import UARTDevice


logger = LogController('doe.log')


# uart1 = UARTDevice('/dev/cu.usbserial-MLB2A',logger,230400,1)
# fixture = DeviceCmdSetsController(uart1,cmdextends=Fixture_CmdSets)
# fixture.tt_ver()
# fixture.tt_info()
# del uart1


# usb1=USBDevice(device_name='USB0::0x0699::0x0409::C022832::INSTR',log=logger)
# tek=DeviceCmdSetsController(usb1,cmdextends=TEKMSO4104B_CmdSets)
# # tek.vertical.label.set(1,'VddMain',delay=10,action='write',timeout=5)
# tek.info()
# tek.vertical.label.query(1)
# del usb1


# print(USBDevice.list_device())
# ('ASRL5::INSTR', 'ASRL6::INSTR', 'ASRL7::INSTR', 'ASRL8::INSTR', 'USB0::0x0699::0x0409::C022832::INSTR', 'TCPIP0::172.21.205.62::inst0::INSTR')
print(UARTDevice.list_device())
# ('/dev/cu.usbserial-MLB2B', '/dev/cu.usbserial-MLB2D', '/dev/cu.usbserial-MLB2A', '/dev/cu.usbserial-MLB2C', '/dev/cu.Bluetooth-Incoming-Port')

